//
//  DebtInfo.h
//  Core
//
//  Created by Cuong Doan on 3/4/13.
//  Copyright (c) 2013 Cuong Doan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "sqlite3.h"
#import "DatabaseManager.h"

@interface DebtInfo : NSObject

@property (nonatomic, assign)int USERID;

@property (nonatomic, assign)int DebtOrder;

@property (nonatomic, retain)NSMutableString *Description;

@property (nonatomic, assign)double Amount;

@property (nonatomic, retain)NSDate *Deadline;

@property (nonatomic, assign)bool AutoFlow;

@property (nonatomic, assign)bool isPaid;

//
// init debt info with specific user id and debt order
//
-(id)initWithID:(int)userID andOrder:(int)debtOrder;

//
// create new debt record
//
-(void)insertDebt;

//
// update debt record
//
-(void)updateDebt;
@end
